#include "ptc.h"

#include "rtthread.h"
#include "board.h"

rt_uint8_t ptc_pin;
void ptc_init(void)
{
    ptc_pin = rt_pin_get("PA.6");
    // 设置引脚为输出方式
    rt_pin_mode(ptc_pin, PIN_MODE_OUTPUT);
}

void ptc_on(void)
{
    rt_pin_write(ptc_pin, 1);
}

void ptc_off(void)
{
    rt_pin_write(ptc_pin, 0);
}
